// slot
.to-flow {
    font-size: 0;
    width: 10vmin;

    &_icon {
        width: 100%;
    }
}

.progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 28vmin;
    padding: 0 5vmin;

    &-title {
        font-size: var(--normal-font-size);
        font-weight: bold;
        text-align: center;
        margin-bottom: 2vmin;
        color: var(--text-color);
    }

    &-bar {
        display: flex;
        background-color: var(--exchange-color);
        width: 100%;
        height: 13vmin;
        border-radius: 999vmin;
        border: 1.2vmin solid var(--exchange-color);
        overflow: hidden;

        &-info {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background-color: #ffffff;

            &::before {
                content: '';
                position: absolute;
                top: 50%;
                left: 0;
                width: var(--progress-width);
                transform: translateY(-50%);
                height: 111%;
                background: repeating-linear-gradient(115deg, var(--task-color) 0 9px, #f08a93 0 18px);
                background-size: 100px 100%;
                z-index: 0;
                transition: width 300ms ease-in-out;
            }

            svg {
                margin-right: 1vmin;
                z-index: 1;
            }

            &_text {
                font-size: var(--middle-font-size);
                stroke-width: 1;
                font-weight: bold;
                fill: #ffffff;
                stroke: var(--task-color);
            }
        }
    }
}

.main {
    position: absolute;
    left: 0;
    right: 0;

    .withdraw {
        width: 100%;
        height: 100%;
        min-height: 60vh;
        border-radius: 5vmin 5vmin 0 0;
        padding: 4vmin;

        &-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-auto-rows: 43vmin;
            grid-gap: 4vmin;
        }

        &-card {
            border-radius: 3vmin;
            background: linear-gradient(to bottom, #F79BA4, #FE557D);
            box-shadow: 0px 1vmin 2vmin -0.5vmin #bfbfbf;

            &-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-evenly;
                width: 100%;
                height: 100%;

                &_span {
                    font-size: var(--title-font-size);
                    font-weight: bold;
                }

                &_img {
                    width: 18vmin;
                    background-color: #ffffff;
                    border-radius: 3vmin;
                }

                &_btn {
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 75%;
                    height: 9vmin;
                    line-height: 9vmin;
                    background-color: #ffffff;
                    border-radius: 999vmin;
                    overflow: hidden;

                    img {
                        width: 5vmin;
                        z-index: 1;
                    }

                    span {
                        position: relative;
                        display: block;
                        text-align: center;
                        z-index: 1;
                        font-size: var(--small-font-size);
                        font-weight: bold;
                        color: var(--exchange-btn-color);
                        margin: 0 1vmin;
                        line-height: 1;
                    }

                    &::before {
                        content: '';
                        position: absolute;
                        top: 50%;
                        left: 0;
                        transform: translateY(-50%);
                        width: var(--item-progress-width);
                        height: 100%;
                        background: linear-gradient(to right, #FDEDDA, 20%, #F4BCAD);
                        z-index: 0;
                    }
                }
            }
        }
    }
}

.failed {
    @extend %withdrawFail;
    flex-direction: column;
}